package top.tttfu.dao;

import top.tttfu.entity.Task;
import top.tttfu.entity.User;

import java.sql.Connection;
import java.util.List;

public interface ITaskDao {
    int addTask(Connection con, Task task);
    Task selectTaskByID(Connection con, int id);
    List<Task> selectTaskByUser(Connection con, User user);
    boolean updateTask(Connection con, Task task);
    boolean deleteTaskByID(Connection con, int id);
}
